import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { IBaseEntity } from '../00_base/IBaseEntity';
import { JwtUtils } from '../01_auth/jwt.utils';
import { IBaseService } from '../00_base/IBaseService';
import { JwtService } from '@nestjs/jwt';
import { SysMenu } from './entities/menu.entity';
import { MenuController } from './menu.controller';
import { MenuService } from './menu.service';

@Module({
  imports: [TypeOrmModule.forFeature([IBaseEntity, SysMenu])],
  controllers: [MenuController],
  providers: [MenuService, JwtService, IBaseService, JwtUtils],
  exports: [MenuService],
})
export class MenuModule {}
